package com.bxj.wxtt;

import com.ifeng.matrix.application.AbstractEmbeddedServerApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * 翻阅小说服务主程序
 */
@ComponentScan({"com.bxj", "com.ifeng"})
@PropertySource(value={"file:${spring.config.location:/bxj/dubbo/config/application.properties}"})
@ImportResource({"classpath:/spring/applicationContext.xml", "classpath:/spring/applicationContext-ehcache.xml"})
@EnableAutoConfiguration


public class FreadServiceApplication extends AbstractEmbeddedServerApplication {

    public static void main(String[] args) throws IOException {
//        Spider.create(new ToutiaoPageProcessor(1111111, "test")).addUrl("http://www.wkj.link/").addPipeline(new ConsolePipeline()).thread(1).run();
//                .addPipeline(dataBasePipeline).thread(task.getThread()).run();
        run(FreadServiceApplication.class, args);
    }
}
